﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using V2TEK.NET.SH.Silverlight.Charts.Core.Schedule;

namespace V2TEK.NET.SH.Silverlight.Charts.GanttHelper
{
    public class HumanResource : IResource
    {
        public HumanResource()
        { }

        public HumanResource(string str)
        {
            string[] strs = str.Split(new string[]{";#"}, StringSplitOptions.RemoveEmptyEntries);
            this.Code = strs[0];
            this.DisplayName = strs[1];
        }

        #region IResource Members

        public string Code { get; set; } 

        public string DisplayName { get; set; }

        public ResourceType ResourceType
        {
            get { return ResourceType.TimeResource; }
        }

        #endregion
    }
}
